<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/SystemCenter/resourcCesettings.css">
<div  class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>资源设置</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md2" >
                    <div class="searchs">
                        <label>资源：</label>
                        <input class="text layui-input" type="text" name="username" id="resourcessearch" autocomplete="off">
                        <button class="layui-btn layui-btn-sm layui-btn-normal" id="searchs">搜索</button>
                    </div>
                    <ul class="layui-nav layui-nav-tree layui-inline" id="resourcesul" lay-filter="resourcesul"
                        style="margin-right: 10px;overflow: auto">
                        <li class="layui-nav-item"><a href="javascript:;">云市场</a></li>
                        <li class="layui-nav-item"><a href="javascript:;">社区</a></li>

                    </ul>
                </div>
                <div class="layui-col-md10">
                    <div class="layui-btn-group">
                        <button class="layui-btn layui-btn-sm" id="newresources">新增</button>
                    </div>
                    <form class="layui-form" action="" lay-filter="resources-form">
                        <div class="layui-form-item">
                            <label class="layui-form-label">资源名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="name" lay-verify="required" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">资源编码</label>
                            <div class="layui-input-block">
                                <input type="text" name="code" lay-verify="required" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">资源路径</label>
                            <div class="layui-input-block">
                                <input type="text" name="url" lay-verify="required" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                               <%--  上级节点--%>
                                <input type="hidden" name="id" id="resourcId" >
                                  <%-- 资源全路径--%>
                               <%-- <input type="hidden" name="path" >--%>
                        <div class="layui-form-item">
                            <div class="layui-input-block" id="resourcesupelement">
                                <button class="layui-btn" lay-submit  lay-filter="resourcesup-form-element">提交</button>
                                <input type="button" id="companylist" class="layui-btn layui-btn-warm" value="删除">
                            </div>
                            <div class="layui-input-block" id="resourceselement">
                                <button class="layui-btn" lay-submit  lay-filter="resources-form-element">保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/js/SystemCenter/resourcCesettings.js"></script>